<div class="fly-home" style="background-image: url();">
    <img src="__ROOT__{$userinfo['face']}" alt="{$userinfo['username']}">
    <h1>
        {$userinfo['username']}
        <?php if ($userinfo['sex']=='男') { ?>
           <i class="iconfont           icon-nan        "></i>
        <?php } else if ($userinfo['sex']=='女') { ?>
           <i class="iconfont           icon-nv        "></i> 
        <?php } ?>
    </h1>
    <p class="fly-home-info">
        <i class="iconfont icon-zuichun" title="飞吻">
        </i>
        <span style="color: #FF7200;">
            {$userinfo['kiss']}飞吻
        </span>
        <i class="iconfont icon-shijian">
        </i>
        <span>
            {$how_time} 加入
        </span>
        <i class="iconfont icon-chengshi">
        </i>
        <span>
            来自{$userinfo['city']}
        </span>
    </p>
    <p class="fly-home-sign">
        {$userinfo['sign']}
    </p>
</div>
<div class="main fly-home-main">
    <div class="layui-inline fly-home-jie">
        <h2 class="page-title">
            {$userinfo['username']} 最近的提问
        </h2>
        <ul class="jie-row">
        <?php foreach ($zuijinquestion as $z) { ?>
            <li>
            <?php if ($z['is_jing']==1) { ?>
                <span class="fly-jing">
                    精
                </span>
            <?php } ?>
                <a href="{:U('home/question/question',array('id'=>$z['id']))}" class="jie-title">
                    {$z['title']}
                </a>
                <i>
                    <?php echo run($z['create_time']) ?>天前
                </i>
                <em>
                    {$z['view_num']}阅/{$z['answer_num']}答
                </em>
            </li>
        <?php } ?>
        </ul>
    </div>
    <div class="layui-inline fly-home-da">
        <h2 class="page-title">
            {$userinfo['username']} 最近的回答
        </h2>
        <ul class="home-jieda">
        <?php foreach ($zuijinanswer as $a) { ?>
            <li>
                <p>
                    <span>
                        <?php echo run($a['create_time']) ?>
                    </span>
                    在
                    <a href="{:U('home/question/question',array('id'=>$a['qid']))}" target="_blank">
                        {$a['title']}
                    </a>
                    中回答：
                </p>
                <div class="home-dacontent">
                    <?php echo htmlspecialchars_decode($a['content']) ?>
                </div>
            </li>
        <?php } ?>
        </ul>
    </div>
</div>
